export default {
  namespaced: true,
  state: {
    token: uni.getStorageSync('token') || ''
  },
  mutations: {
    setToken(state, payload) {
      console.log('这个是模块里面的mutation');
      state.token = payload
      uni.setStorageSync('token', payload)
    }
  }
}